package com.example.management.pojo;

import java.sql.Date;

public class Student {


    private Long number;
    private String sex;
    private String name;
    private Date birth;
    private String major;
    private Integer classes;
    private Long phone;
    private Integer dormitoryNumber;

    public Student() {
    }

    public Student(Long number, String sex, String name, Date birth, String major, Integer classes, Long phone, Integer dormitoryNumber) {
        this.number = number;
        this.sex = sex;
        this.name = name;
        this.birth = birth;
        this.major = major;
        this.classes = classes;
        this.phone = phone;
        this.dormitoryNumber = dormitoryNumber;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Integer getClasses() {
        return classes;
    }

    public void setClasses(Integer classes) {
        this.classes = classes;
    }

    public Long getPhone() {
        return phone;
    }

    public void setPhone(Long phone) {
        this.phone = phone;
    }

    public Integer getDormitoryNumber() {
        return dormitoryNumber;
    }

    public void setDormitoryNumber(Integer dormitoryNumber) {
        this.dormitoryNumber = dormitoryNumber;
    }

    @Override
    public String toString() {
        return "Student{" +
                "number=" + number +
                ", sex='" + sex + '\'' +
                ", name='" + name + '\'' +
                ", birth=" + birth +
                ", major='" + major + '\'' +
                ", classes=" + classes +
                ", phone=" + phone +
                ", dormitoryNumber=" + dormitoryNumber +
                '}';
    }
}
